﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Cosmetic.Logic;

namespace WebApp.Space.AccountInfo
{
    public partial class UserInfo : PageBase
    {
        private UserManager m_UserManager = new UserManager();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (this.SignInUser == null)
            {
                //Response.Redirect("~/Login.aspx");
                Page.RegisterClientScriptBlock("key","<script>window.top.location = '/Login.aspx';</script>");
                return;
            }
            if (!IsPostBack)
            {
                LoadData();
            }
        }

        private void LoadData()
        {
            this.ltlUserName.Text = SignInUser.UserName;
            this.ltlPhone.Text = SignInUser.tel;
            this.ltlNickName.Text = SignInUser.NickName;
            this.ltlEmail.Text = SignInUser.Email;
        }
    }
}